/*
 * @Description: 基础button组件
 * @Author: buwei.huang
 * @Date: 2019-08-14 10:08:07
 * @Last Modified by: buwei.huang
 * @Last Modified time: 2019-08-27 17:26:55
 */
<template>
  <button
    class="com_base_btn"
    :class="btnClassName"
    @click="btnEvent"
  >
    {{btnText}}
  </button>
</template>
<script>
// const BTN_ORDER_LIST = 1
const BTN_ORDER_DETAIL = 2
export default {
  methods: {
    isRefresh() {
      if (this.tag === BTN_ORDER_DETAIL) { // 详情goback
        setTimeout(() => {
          window.location.assign('xbapp://goback?tagRefresh=true')
        }, 500)
      } else {
        this.$emit('afreshState')
      }
    }
  }
}
</script>
<style>
.com_base_btn {
  border: none;
  font-size: 12px; /*no*/
  text-align: center;
  border-radius: 24px;
}
</style>
